package cn.itcast.bos.service.base.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.itcast.bos.dao.base.WayBillReponsitory;
import cn.itcast.bos.domain.take_delivery.WayBill;
import cn.itcast.bos.service.base.WayBillService;
@Service
@Transactional
public class WayBillServiceImpl implements WayBillService {

	@Autowired
	private WayBillReponsitory wayBillReponsitory;
	@Override
	public void save(WayBill wayBill) {
		wayBillReponsitory.save(wayBill);
	}
	@Override
	public Page<WayBill> pageQuery(Pageable pageable) {
		// TODO Auto-generated method stub
		return wayBillReponsitory.findAll(pageable);
	}
	
	
	

}
